package com.xc.h05.mapper;

import com.xc.h05.entity.Question;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 30658
* @description 针对表【question】的数据库操作Mapper
* @createDate 2025-03-07 19:54:45
* @Entity com.xc.h05.entity.Question
*/
@Mapper
public interface QuestionMapper {

    // 添加
    int add(Question question);
    // 删除
    int delete(int id);
    // 批量删除
    int deletes(List list);
    // 修改
    int update(Question question);
    // 根据**分页查询
    List<Question> findByPage(Question question);
    // 根据id查询
    Question findById(int id);
    // 查询所有
    List<Question> findAll();

}
